package com.taxi.controller;

import com.taxi.result.Result;
import com.taxi.service.PassengerUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PassengerUserController {
    @Autowired
    private PassengerUserService passengerService;

    @GetMapping("/passenger-user/list")
    public Result getUserList(@RequestParam int page, @RequestParam int limit,@RequestParam(required = false) String phone){
        return passengerService.getUserList(page,limit,phone);
    }
}
